<?
require("config.php");
require("../bin/db.php");
$location_status .= " | News Years";
$table="med_years";
$show_backnav = "media_main";

$menuname = NULL;

$menutarget = NULL;

if (NULL!=$action){

  $field = array(
	"years",
	);


   $content = array(
	$Years,
	);

   $expression = "id = '1'";

   myUpdate($table,$field,$content,$expression);


	

   header("location: media_main.php");

}else{
	$Query = "select * from $table where id = 1";
	$r = myQuery($Query);

	if (!$r)header("location:" . $rela_path . "share/msg.php?v=9002");

$years = $r[0][1];

}

require($rela_path . "inc/header.php");

?>


<form action="years.php" method="post" enctype="multipart/form-data" name="form1">
<input name="action" type="hidden" value="add">
<table width="95%" border="0" align="center">
  <tr> 
    <td align="right">&nbsp; </td>
  </tr>
  <tr> 
    <td><p><br>
        </p>
        <table border="0" cellspacing="0" cellpadding="2">
                          	<tr><td>Enter a list of years separated by commas (',') without spaces. (i.e. 2003,2004,2005)</td><td></td></tr>
                            <tr> 
                    
                              
                              <td> <input name="Years" type="text" class="text" value="<?print($years)?>" size="100" <?print($active)?>="<?print($active)?>"> 
                              </td><td></td>
                            </tr>
					
    
          <tr>
            
            <td><input type="image" src="../images/bt_cancel.gif" onClick="Redirect('media_main.php',1);return false;"> <input type="image" src="../images/bt_save.gif">
            </td>
						<td>&nbsp;</td>
          </tr>
        </table>
        <p> <br>
          <br>
          <br>
          <br>
          <br>
        </p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp; </p></td>
  </tr>
</table>

</FORM>

<?
require($rela_path . "inc/footer.php");
?>
